6 vector
<vector
<double> > t
;
8 bool semejantes(const vector
<double> &t1
, const vector
<double> &t2
){
9 return (t1
[0]/t2
[0] == t1
[1]/t2
[1] &&
10 t1
[1]/t2
[1] == t1
[2]/t2
[2] &&
11 t1
[2]/t2
[2] == t1
[0]/t2
[0] );
14 void divide(vector
<double> v
){
15 sort(v
.begin(), v
.end());
16 double h
= sqrt(2*v
[1]*v
[1]-v
[2]*v
[2]+2*v
[0]*v
[0])/2;
18 vector
<double> h1(3), h2(3);
20 h1
[1] = h2
[1] = v
[2]/2;
23 sort(h1
.begin(), h1
.end());
24 sort(h2
.begin(), h2
.end());
27 for (int i
=0; i
<t
.size(); ++i
){
28 yaEsta
= yaEsta
&& !(semejantes(h1
, t
[i
]));
36 for (int i
=0; i
<t
.size(); ++i
){
37 yaEsta
= yaEsta
&& !(semejantes(h2
, t
[i
]));
48 for (int i
=1; i
<=n
; ++i
){
50 vector
<double> temp(3);
51 for (int j
=0; j
<3; ++j
){
55 cout
<< t
.size() << endl
;